package com.etone.smartAudit.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.etone.smartAudit.domain.ServerSource;
import com.etone.smartAudit.vo.serverSource.ServerSourceSimpleVO;
import com.etone.smartAudit.vo.serverSource.ServerSourceVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: sovy
 * @date: 2020/10/28
 * @description:
 */

@Mapper
public interface ServerSourceMapper extends BaseMapper<ServerSource> {

    /**
     * 查找服务器资源
     *
     * @param serverInfoId
     * @return
     */
    List<ServerSourceVO> findList(@Param("serverInfoId") Integer serverInfoId);

    /**
     * 服务器资源详情
     *
     * @param id
     * @return
     */
    ServerSourceVO findDetail(@Param("id") Integer id);

    /**
     * 基本信息
     *
     * @return
     */
    List<ServerSourceSimpleVO> findListSimple();
}